<?php
header("Content-Type: text/html; charset=ISO-8859-1",true);
if(!isset($_SESSION))session_start();
if(!isset($_SESSION['usuario'])){
	session_destroy();
	header("location:index.php"); exit;
	}

include 'classes/classeCCP.php';
$con = new Crud();
$con->connect();
?>

<script language="JavaScript" src="js/jquery-1.5.1.js" type="text/javascript"></script>

<script>
$(function(){
    $('select[name=setor]').change(function(){
		$('select[name=funcionario]').html('<option>Carregando...</option>');
		$.post("fun.php?q="+$(this).val(),
		{setor:$('select[name=setor]').val()},
		function(valor){
			$('select[name=funcionario]').html(valor);
			}
		)
	})
})


</script>
Colocar o Documento em Check-In<br />
<?php echo "<a href=?idcon=$id_conteudo&acao1=chi&acao=inout style=text-decoration:none>Check_in</a><br />"; ?><br />

colocar o documento em Check-Out encaminhar para<br /> 
<p>
<form action="" method="post">
  <label >Setor</label>
  <select name="setor" id="setor">
    <?php
    $sql = mysql_query("select id_funcionario, setor from funcionario order by setor asc") or die (mysql_error());
	 while($linha = mysql_fetch_assoc($sql)){
		 echo "<option>$linha[setor]</option>";
		 }
	 ?>  
  </select>
</p>
<p>
  <label for="select2">Funcionario</label>
  <select name="funcionario" id="select2">
  <option>Todos deste setor</option>
  </select>
</p>
</form>